import storage from "../utils/storage"

export default {
    setUserInfo(state, value) {
        state.userInfo = value
        storage.setItem('userInfo', value)
    },
    setToken(state, value) {
        state.token = value
        storage.setItem('token', value)
    },
    setMenu(state, value) {
        state.menuList = value
        storage.setItem('menuList', value)
    },
    setAction(state, value) {
        state.actionList = value
        storage.setItem('actionList', value)
    }
}
